package com.aaa.controller;

import com.aaa.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/aaa")
public class StuController {

    @Autowired
     StudentService student;
    @RequestMapping("/findAll")
    public List<Map> findAll(){
       return student.findAll();
    }
    @RequestMapping("/hello")
    public String hello(){
        return "oppo";

    }
}
